package com.pattern.facade;

/**
 * @author 冯志立
 * @create 2019-11-01 16:31
 */
public class Projector {
    //使用单例模式，饿汉式
    private static Projector instance = new Projector();

    public static Projector getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("Projector打开了");
    }
    public void close(){
        System.out.println("Projector关闭了");
    }
    public void focus(){
        System.out.println("Projector正在聚焦");
    }
}
